package com.itzhihao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itzhihao.entity.Store;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.PageDomain;
import com.ruoyi.common.core.page.TableDataInfo;

import java.util.List;

public interface IStoreService extends IService<Store> {
    TableDataInfo getList(PageDomain pageDomain,Store store);

    Store getDetail(Long id);

    Store selectByUserId(Long userId);

    Long getProdTotal(Long storeId);

    Store selectByProdId(Long prodId);

    boolean updateStatus(Store store, int ordinal);

    boolean deleteById(Long id);

    boolean deleteByIds(List<Long> idLongList);

    boolean updateOrSave(Store store);

    TableDataInfo getBackList(PageDomain pageDomain, Store store);

    Boolean hasStore(Long userId,Long storeId);

    Store getOwnStoreDetail();

    Boolean hasOwnStore();
}
